
	$('#create-room').on("click",function(){
		$.ajax({
			url : 'index.php?page=home' ,
			type : 'POST',
			data : {
				action : 'createRoom',
				roomName : $('#create-room-input').val()
			},
			
			success : function(response){
				
					$('#rooms').append(response);
				
			}
		});
	});

